import  {get, post} from  "../model/http";
import  api from  "../model/api";
import usermenuModel from "./usermenuModel";


const  usermenu = {
    list:(params?:usermenuModel)=>get(api.usermenu.list,params),//list登录以后查询的接口
    add:(data:usermenuModel)=>post(api.usermenu.add,data),//管理员新增的接口
    query:(params:usermenuModel)=>get(api.usermenu.query,params)//根据用户编号查询的接口
}

const  usermenulist  = usermenu.list;
const  addusermenu  = usermenu.add;
const  usermenuquery = usermenu.query;


export  {
    usermenulist,
    addusermenu,
    usermenuquery
}